package com.senven.common.pojo.feign;

import com.senven.common.entity.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @BelongsProject: senven-orderfood-parent
 * @BelongsPackage: com.senven.common.pojo.feign
 * @unthor : YSH
 * @date : 2022/9/7 19:06
 */
@FeignClient(value = "senven-orderfood-address")
public interface AddressFeign {

    @PostMapping("/api/address/findAllAddressByUserid")
    List<Address> findAllAddressByUserId(@RequestParam String id);
}
